#include <QtGui>

#include "tank_bullet.h"

TankBullet::TankBullet (QWidget *parent)
  : QWidget (parent)
{
  setSizePolicy (QSizePolicy::Fixed, QSizePolicy::Fixed);
}

QSize TankBullet::sizeHint () const
{
  return QSize (2, 8);
}

void TankBullet::paintEvent (QPaintEvent *event)
{
  QPainter painter (this);

  painter.fillRect (0, 0, width (), height (),
                    QColor::fromRgb (255, 255, 255));
}
